package com.kylin.dal.entity.commodity;

import com.kylin.shared.common.entity.BaseEntry;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * 商品H5描述信息
 * @author Damon S.
 * @version v1.0.1
 * @date 2020年12月20日 14:00
 */
@Entity
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "t_commodity_html", catalog = "db_kylin_artwork")
public final class CommodityHtmlEntry extends BaseEntry implements Serializable {
    @Id
    @Column(name = "commodity_id")
    private Long commodityId;

    @Column(name = "desc_html", columnDefinition = "LONGTEXT")
    private String description;

    @Column(name = "created_by", updatable = false, nullable = false)
    private Long createdBy;

    @Column(name = "created_at", updatable = false, nullable = false)
    private Long createdAt;

    @Column(name = "updated_at")
    private Long updatedAt;

    @Column(name = "updated_by")
    private Long updatedBy;
}
